#include "dialog.h"

#include <QLabel>
#include <QPushButton>

Dialog::Dialog(QWidget *parent)
    : QDialog(parent)
{
    //method 1 NoDisplay
//    QLabel lab1;
//    lab1.setText("123");
//    QPushButton pb1;
//    pb1.setText("OK");

    //method 2 Display
    QLabel *lab1=new QLabel(this);
    lab1->setText("123");
    lab1->setStyleSheet("background-color: red;border-style: outset;border-width: 3px;border-color: beige;");
    QPushButton pb1;
    pb1.setText("OK");
}

Dialog::~Dialog()
{
}

